//
//  NSString+token.m
//  Ezi2u
//
//  Created by mac on 16/9/29.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "NSString+token.h"

@implementation NSString (token)
+(NSString *)token{
    NSDate *today = [NSDate dateWithTimeIntervalSinceNow:0];
    NSDateFormatter *formatter = [[NSDateFormatter alloc]init];
    [formatter setDateFormat:@"YYYYMMdd"];
    NSString *dateStr = [formatter stringFromDate:today];
    NSString *token = [NSString stringWithFormat:@"EZI2U%@",dateStr];
    NSLog(@"Today == %@",token);
    return token;
}
@end
